<template>
	<view class="container">
		<view class="bh-box">
			驳回原因：内容内容内容内容内容内容内容内容
			内容内容内容内容
		</view>
		<view class="bg-box box-1">
			<view class="left">
				<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
				<text>用户昵称</text>
			</view>
			<view class="right">
				<image :src="$img_path('/pagesRegion/1.png')" mode="widthFix"></image>
			</view>
		</view>
		
		<view class="bg-box box-4">
			<text>电子协议</text>
			<view class="right" @click="toAgreement">
				<text>已签署</text>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
		</view>
		<view class="bg-box box-5">
			<view class="title">
				证书名称证书名称
			</view>
			<view class="idcard">
				<view class="u-box">
					<view class="img-box">
						<image :src="$img_path('/pagesRegion/13.png')" mode="aspectFill"></image>
						
						<view class="sh g-status">
							已通过
						</view>
						<view class="sh r-status">
							被驳回
						</view>
					</view>
					<view class="text">
						证书名称正面
					</view>
				</view>
				<view class="u-box">
					<view class="img-box">
						<image :src="$img_path('/pagesRegion/13.png')" mode="aspectFill"></image>
						
						<view class="sh g-status">
							已通过
						</view>
						<view class="sh r-status">
							被驳回
						</view>
					</view>
					<view class="text">
						证书名称反面
					</view>
				</view>
			</view>
		</view>
		
		
		
		<view class="b-btn">
			<view class="b-box edit">
				<button @click="$refs.bohui.open()">驳回</button>
				<button>同意</button>
			</view>
		</view>
		
		
		<popupBox ref="bohui" contentBG="#ffffff">
			<view class="popup-con">
				<view class="title">
					驳回
				</view>
				<view class="con-textarea">
					<textarea placeholder="请输入驳回原因"></textarea>
				</view>
			</view>
		</popupBox>
	</view>
</template>

<script>
	import popupBox from '@/components/popup/popup.vue'
	export default {
		components:{
			popupBox
		},
		data() {
			return {
				
			};
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:'待审核'
			})
		},
		methods:{
			toAgreement(){
				uni.navigateTo({
					url:'/pagesRegion/servicePersonnelReview/agreement'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	box-sizing: border-box;
	padding-bottom: calc(constant(safe-area-inset-bottom) + 140rpx);
	padding-bottom: calc(env(safe-area-inset-bottom) + 140rpx);
	
	.bh-box{
		background: #FFE6E6;
		border-radius: 20rpx;
		padding: 24rpx 22rpx 22rpx;
		box-sizing: border-box;
		font-weight: 400;
		font-size: 32rpx;
		color: #FF4A4A;
		line-height: 44rpx;
		margin-top: 20rpx;
	}
	
	.bg-box{
		background: #FFFFFF;
		border-radius: 20rpx;
		margin-top: 20rpx;
		box-sizing: border-box;
	}
	.box-1{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 32rpx 24rpx 30rpx;
		.left{
			display: flex;
			align-items: center;
			image{
				width: 112rpx;
				height: 112rpx;
				border-radius: 50%;
			}
			text{
				font-weight: bold;
				font-size: 36rpx;
				color: #000000;
				line-height: 50rpx;
				margin-left: 20rpx;
			}
		}
		.right{
			image{
				width: 68rpx;
				height: 68rpx;
			}
		}
	}
	.box-4{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 32rpx 44rpx 30rpx 32rpx;
		&>text{
			font-weight: bold;
			font-size: 30rpx;
			color: #000000;
			line-height: 42rpx;
		}
		.right{
			display: flex;
			align-items: center;
			justify-content: flex-end;
			text{
				font-weight: 400;
				font-size: 30rpx;
				color: #B4B4B4;
				line-height: 42rpx;
			}
			image{
				width: 11rpx;
				height: 19rpx;
				margin-left: 22rpx;
			}
		}
	}
	.box-5{
		padding: 24rpx 24rpx 10rpx;
		.title{
			font-weight: bold;
			font-size: 30rpx;
			color: #000000;
			line-height: 42rpx;
			margin-bottom: 20rpx;
		}
		.idcard{
			padding-bottom: 40rpx;
			.u-box{
				width: 100%;
				&:last-child{
					margin-top: 40rpx;
				}
				.img-box{
					width: 100%;
					height: 360rpx;
					image{
						width: 100%;
						height: 100%;
						border-radius: 12rpx;
					}
					position: relative;
					.sh{
						position: absolute;
						top: 50%;
						left: 50%;
						transform: translateX(-50%) translateY(-50%);
						width: 176rpx;
						height: 176rpx;
						border-radius: 50%;
						display: flex;
						align-items: center;
						justify-content: center;
						font-weight: 400;
						font-size: 32rpx;
						color: #FFFFFF;
						line-height: 44rpx;
						&.g-status{
							background: rgba(26, 122, 49, 0.5);
						}
						&.r-status{
							background-color: rgba(255, 74, 74, 0.5);
						}
					}
				}
				.text{
					font-weight: bold;
					font-size: 30rpx;
					color: #000000;
					line-height: 42rpx;
					text-align: center;
					margin-top: 20rpx;
				}
			}
		}
	}
}

.popup-con{
	.title{
		text-align: center;
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding: 28rpx 0 18rpx;
	}
	.c-text{
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding-bottom: 66rpx;
	}
	.con-textarea{
		padding-bottom: 52rpx;
		textarea{
			width: 508rpx;
			height: 186rpx;
			background: #FFFFFF;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 2rpx solid #B4B4B4;
			padding: 20rpx;
		}
	}
}

.b-btn{
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	.b-box{
		padding: 20rpx 22rpx;
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		button{
			width: 50%;
			height: 96rpx;
			font-weight: bold;
			font-size: 36rpx;
			color: #FFFFFF;
			line-height: 96rpx;
			&:nth-child(1){
				background: #FF4A4A;
				border-radius: 80rpx 0rpx 0rpx 80rpx;
			}
			&:last-child{
				background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
				border-radius: 0rpx 80rpx 80rpx 0rpx;
			}
		}
	}
}
</style>
